<template>
  <div class="Echarts">
    <header>
      <h2 @click="back">返回</h2>
      <h1>数据分析可视化</h1>
      <h1></h1>
    </header>
    <!-- 大容器 -->
    <section class="container">
      <!-- 左容器 -->
      <section class="item-left">
        <ItemPage>
          <ItemOne/>
        </ItemPage>

        <ItemPage>
          <ItemTwo/>
        </ItemPage>
      </section>

      <!-- 中容器 -->
      <section class="item-center">
        <MapPage />
      </section>

      <!-- 右容器 -->
      <section class="item-right">
        <ItemPage>
          <ItemThree />
        </ItemPage>

        <ItemPage>
          <ItemFour />
        </ItemPage>
      </section>
    </section>
  </div>
</template>

<script>
import ItemPage from '../echartsItem/itemPage.vue'
import ItemOne from '../echartsItem/itemOne.vue'
import ItemTwo from '../echartsItem/itemTwo.vue'
import ItemThree from '../echartsItem/itemThree.vue'
import ItemFour from '../echartsItem/itemFour.vue'
import MapPage from '../echartsItem/mapPage.vue'
export default {
  name: 'Echarts',
  components: { ItemPage, ItemOne, ItemTwo, ItemThree, ItemFour, MapPage },
  data() {
    return {}
  },
  methods:{
    back() {
      this.$router.push('/datas')
    }
  }
}
</script>

<style lang="less" scoped>
.Echarts {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, .8);
  overflow: hidden;
}

header {
  height: 50px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  line-height: 25px;
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;

  h1 {
    font-size: 22px;
    color: #fff;
    text-align: center;
  }

  ;

  h2 {
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-left: 10px;
    cursor: pointer;
  }
}

.container {
  min-width: 1200;
  max-width: 2048;
  margin: 30px auto;
  padding: 10px 10px 0;
  display: flex;


  .item-left,
  .item-right {
    flex: 3;
  }

  .item-center {
    flex: 5;
    height: 590px;
    border: 1px solid #ccc;
    margin-top: 10px;
    padding: 10px;
  }
}
</style>
